package net.wanho.ems.mapper;

import net.wanho.ems.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【t_user(用户表)】的数据库操作Mapper
* @createDate 2023-07-06 15:47:08
* @Entity net.wanho.ems.entity.User
*/
public interface UserMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectByusernameAndPassword(User user);

    List<User> selectList(User user);

    void updateStatusByPrimaryKey(@Param("id") Integer id,@Param("status") Integer status);

    void resetPassword(@Param("id") Integer id,@Param("password") String password);
}
